home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3n / t6get_attr.z / t6get_attr
Encoding:
Text File  |  2002-10-03  |  5.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. tttt6666ggggeeeetttt____aaaattttttttrrrr////tttt6666sssseeeetttt____aaaattttttttrrrr((((3333NNNN))))                            tttt6666ggggeeeetttt____aaaattttttttrrrr////tttt6666sssseeeetttt____aaaattttttttrrrr((((3333NNNN))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      t6get_attr, t6set_attr - Get or set security attributes
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      cccccccc [[[[ ffffllllaaaaggggssss ............ ]]]] ffffiiiilllleeee
  13.  
  14.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////tttt6666aaaattttttttrrrrssss....hhhh>>>>
  15.  
  16.      vvvvooooiiiidddd ****tttt6666ggggeeeetttt____aaaattttttttrrrr((((tttt6666aaaattttttttrrrr____iiiidddd____tttt aaaattttttttrrrr____ttttyyyyppppeeee,,,, ccccoooonnnnsssstttt tttt6666aaaattttttttrrrr____tttt tttt6666ccccttttllll))))
  17.  
  18.      iiiinnnntttt tttt6666sssseeeetttt____aaaattttttttrrrr((((tttt6666aaaattttttttrrrr____iiiidddd____tttt aaaattttttttrrrr____ttttyyyyppppeeee,,,, ccccoooonnnnsssstttt vvvvooooiiiidddd ****aaaattttttttrrrr____bbbbuuuuffff,,,, tttt6666aaaattttttttrrrr____tttt
  19.      tttt6666ccccttttllll))))
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      _t_6_g_e_t__a_t_t_r() takes a control structure, _t_6_c_t_l, and attribute type,
  23.      _a_t_t_r__t_y_p_e, and returns a pointer to the requested attribute value (type)
  24.      from the opaque control structure _t_6_c_t_l. _a_t_t_r__t_y_p_e contains a number
  25.      defined in <_s_y_s/_t_6_a_t_t_r_s._h> that specifies what type of attribute that the
  26.      caller is interested in getting.  Only one type can be specified per
  27.      call.
  28.  
  29.      Returned value by _t_6_g_e_t__a_t_t_r() should be type cast to the standard type
  30.      that represents the type indicated by _a_t_t_r__t_y_p_e.
  31.  
  32.      _t_6_s_e_t__a_t_t_r() replaces the requested attribute value (type) in _t_6_c_t_l with
  33.      the value pointed to by _a_t_t_r__b_u_f.  Type of the attribute is specified in
  34.      _a_t_t_r__t_y_p_e as one of the numbers defined in <_s_y_s/_t_6_a_t_t_r_s._h>, and also
  35.      listed in the following table:
  36.  
  37.      NNNNAAAAMMMMEEEE of attribute              TTTTYYYYPPPPEEEE
  38.  
  39.      T6_SL                          msen_t
  40.  
  41.      T6_NAT_CAVEATS                 char * (size = T6_MAX_TEXT_BUF)
  42.  
  43.      T6_INTEG_LABEL                 mint_t
  44.  
  45.      T6_SESSION_ID                  uid_t *
  46.  
  47.      T6_CLEARANCE                   msen_t
  48.  
  49.      T6_ACL                         acl_t
  50.  
  51.      T6_IL                          _n_o_t _i_m_p_l_e_m_e_n_t_e_d
  52.  
  53.      T6_PRIVILEGES                  cap_t
  54.  
  55.      T6_AUDIT_ID                    uid_t *
  56.  
  57.      T6_PID                         pid_t *
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. tttt6666ggggeeeetttt____aaaattttttttrrrr////tttt6666sssseeeetttt____aaaattttttttrrrr((((3333NNNN))))                            tttt6666ggggeeeetttt____aaaattttttttrrrr////tttt6666sssseeeetttt____aaaattttttttrrrr((((3333NNNN))))
  71.  
  72.  
  73.  
  74.      T6_RESV10                      _u_n_u_s_e_d, _r_e_s_e_r_v_e_d _f_o_r _f_u_t_u_r_e _u_s_e
  75.  
  76.      T6_AUDIT_INFO                  char * (size = T6_MAX_TEXT_BUF)
  77.  
  78.      T6_UID                         uid_t *
  79.  
  80.      T6_GID                         gid_t *
  81.  
  82.      T6_GROUPS                      t6groups_t *
  83.  
  84.      T6_PROC_ATTR                   _n_o_t _i_m_p_l_e_m_e_n_t_e_d
  85.  
  86. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  87.      On successful completion, _t_6_g_e_t__a_t_t_r() returns a pointer to the
  88.      appropriate value if it exists in the attribute structure, otherwise it
  89.      returns NULL.  _t_6_s_e_t__a_t_t_r() returns _0 if the attribute structure can
  90.      contain the requested attribute, otherwise it returns -_1 and does not
  91.      change the attribute structure.
  92.  
  93.      An attempt to set a _r_e_s_e_r_v_e_d or _n_o_t _i_m_p_l_e_m_e_n_t_e_d attribute will result in
  94.      error where -_1 is returned, and the error value stored in the global and
  95.      per-thread error locations (See setoserror(3C)).
  96.  
  97. EEEERRRRRRRROOOORRRR
  98.      [_E_I_N_V_A_L]       Invalid argument.
  99.  
  100. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  101.      libt6(3N), t6attr_alloc(3N), t6create_attr(3N), t6free_attr(3N).
  102.  
  103. SSSSOOOOUUUURRRRCCCCEEEE
  104.      Trusted Systems Interoperability Group
  105.  
  106. NNNNOOOOTTTTEEEESSSS
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                                                                         PPPPaaaaggggeeee 2222
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.